//
//  BCShopCarManager.h
//  BangcaiBuy
//
//  Created by lsy on 16/6/17.
//  Copyright © 2016年 BCB. All rights reserved.
//

#import "BCBaseTool.h"

@protocol shopCarDelegate <NSObject>

- (void)goTo;
@optional
- (void)logoTo;

@end

@interface BCShopCarManager :BCBaseTool
@property(nonatomic, strong)NSMutableArray *stuffList;
@property(nonatomic, assign)NSInteger amount;
@property(nonatomic, assign)CGFloat totalPrice;
@property(nonatomic, strong)UIButton *logoImg;
@property(nonatomic, copy)NSString *butTitle;
@property(nonatomic, assign)NSInteger style;
@property(nonatomic, assign)BOOL hidden;

@property(nonatomic, weak)id<shopCarDelegate>delegate;
BCDECLARE_SHARED_INSTANCE(BCShopCarManager)

- (void)setStuffName:(NSString*)name amount: (NSInteger)amount price:(double)price type:(BCStuffType)type;

- (void)addStuffName:(NSString*)name amount: (NSInteger)amount price:(double)price type:(BCStuffType)type;
- (void)removeStuffName:(NSString*)name amount: (NSInteger)amount price:(double)price type:(BCStuffType)type;

- (void)layOutWithLogo;

- (void)showShopWindow;
- (void)showShopWindowUp;
- (void)hideShopWindow;
- (void)refreshWindow;
- (void)clickAction;

@end
